/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.soc.cs5226.gui.entities;
import edu.soc.cs5226.gui.entities.util.Constants;
import java.sql.Timestamp;
import javax.faces.bean.ManagedBean;

/**
 *
 * @author Huimin
 */
@ManagedBean
public class SharedPool implements DBParameter {
    private Timestamp dateTime;
    private long pinHits = 0;
    private long pins = 0;
    private long hitRatio = 0;
    private String sps_healthStatus;
        
    public String getActualTime() {
        return Constants.DATEFORMAT.format(dateTime.getTime());
    }
    
    public Timestamp getdateTime() {
        return dateTime;
    }

    public void setdateTime(Timestamp dateTime) {
        this.dateTime = dateTime;
    }
    
    public long getpinHits() {
        return pinHits;
    }

    public void setpinHits(long pinHits) {
        this.pinHits = pinHits;
    }
    
    public long getpins() {
        return pins;
    }

    public void setpins(long pins) {
        this.pins = pins;
    }
    
    public long gethitRatio() {
        return hitRatio;
    }

    public void sethitRatio(long hitRatio) {
        this.hitRatio = hitRatio;
    }
    
    public String getsps_healthStatus() {
        return sps_healthStatus;
    }

    public void setsps_healthStatus(String sps_healthStatus) {
        this.sps_healthStatus = Constants.convertStatus(sps_healthStatus);
    }  
}
